package com.sfdcj.se.meta.field.basic;

import java.util.HashMap;

import com.sfdcj.se.meta.field.FieldType;
import com.sforce.soap._2006._04.metadata.CustomField;

public class DateTimeType extends FieldType implements BasicFieldType {

	static final public String TYPE = "DateTime";

	public DateTimeType() {
		super();
	}

	public void appendXML() {
		buf.append("<type>" + TYPE + "</type>");
	}

	@Override
	public String getTypeName() {
		return TYPE;
	}

	@Override
	public Object clone() {
		return new DateTimeType();
	}

	@Override
	public void setAttributes(HashMap<String, String> attributes) {
	}

	@Override
	public CustomField toCustomField() {
		CustomField field = new CustomField();
		field.setFullName(objectFullname + "." + fullname);
		field.setLabel(label);
		field.setType(com.sforce.soap._2006._04.metadata.FieldType.DateTime);
		return field;
	}		
}
